<%@ page language="java" pageEncoding="UTF-8" contentType="text/html; charset=utf-8" errorPage="/error.jsp" isELIgnored="false" %>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-bean" prefix="bean" %>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-html" prefix="html" %>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-logic" prefix="logic" %>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-tiles" prefix="tiles" %>
<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jstl/fmt" prefix="fmt" %>
<%@ taglib uri="http://www.opensymphony.com/oscache" prefix="cache" %>
<%@ taglib uri="http://atleap.blandware.com/taglib" prefix="atleap" %>
<html:xhtml />


<atleap:content identifier="information" ignore="true" />
<table cellpadding="0" cellspacing="0" border="0" class="tableView">
    <tr>
        <th align="left" width="50%"><atleap:message key="core.group.form.name" /></th>
        <td><c:out value="${requestScope.group.name}" escapeXml="true" /></td>
    </tr>
    <tr>
        <th align="left" width="50%"><atleap:message key="core.group.form.title" /></th>
        <td><c:out value="${requestScope.group.title}" escapeXml="true" /></td>
    </tr>
    <tr>
        <th align="left" width="50%"><atleap:message key="core.group.form.description" /></th>
        <td><c:out value="${requestScope.group.description}" escapeXml="true" /></td>
    </tr>
    <c:if test="${requestScope.group.fixed}">
        <tr>
            <td colspan="2"><atleap:message key="core.group.form.fixed" /></td>
        </tr>
    </c:if>
</table>
<h3><atleap:message key="core.group.form.roles" /></h3>
<table cellpadding="0" cellspacing="0" border="0" class="rolesDetails">
    <tr>
        <th><atleap:message key="core.role.form.name" /></th>
        <th><atleap:message key="core.role.form.title" /></th>
        <th><atleap:message key="core.role.form.description" /></th>
    </tr>
    <atleap:iterator items="${requestScope.group.roles}" var="role">
        <tr>
            <td><c:out value="${role.name}" escapeXml="true" /></td>
            <td><c:out value="${role.title}" escapeXml="true" /></td>
            <td><c:out value="${role.description}" escapeXml="true" /></td>
        </tr>
    </atleap:iterator>
</table>
<atleap:form action="core/group/callUpdate" method="GET" validateOnSubmit="false">
    <html:hidden property="name" value="${requestScope.group.name}" />
    <atleap:isUserInRole roles="core-group-update">
        <atleap:submit styleClass="button"><atleap:message key="core.commons.buttons.callUpdate" /></atleap:submit>
    </atleap:isUserInRole>
    <atleap:cancel styleClass="button"><atleap:message key="core.commons.buttons.showList" /></atleap:cancel>
</atleap:form>
